package dxcorp.dxadminapi.mapper;

import dxcorp.dxadminapi.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    User findByUsername(String username);

    User findUserById(String Id);

    /**
     * 根据参数查询用户列表
     *
     * @param param
     * @return
     */
    List<User> findUsers(Map param);

    /**
     * 查询用户总数
     *
     * @param param
     * @return
     */
    int getTotalUser(Map param);
}
